<template>
	<view>
		<view class="blank"></view>
		<view class="zy-row item-img">
			<view class="img-list" @click="navTo('/pages-order/order-details/img-details')" >
				<image class="img" src="/static/order/ceshi.png"></image>
				<view class="img-details">
				</view>
				<text>1/6</text>
			</view>
			<view class="zy-row item-up" style="">
				<view class="item-right">
					<text class="item-title ellipsis-1">网球鞋面</text>
					<view class="" style="margin-top: 16rpx;">
					<text class="item-order">待接收</text>
					</view>
				</view>
				<view class="zy-col" style="margin-left: auto;justify-content: space-between;">
					<text class="see-more" >{{statusList[0]}}</text>
				</view>
			</view>
		</view>
		<view class="blank"></view>
		<view class="zy-col list-item">
			<view class="zy-row item-details">
				<text class="item-title">订单编号：</text>
				<text>teiwu439834802832u49</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">服务类型：</text>
				<text>清洗-网面球鞋</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">订单金额：</text>
				<text>100元</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">创建时间：</text>
				<text>2017-10-31 10:56</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">来源网点：</text>
				<text>上门取件</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">取件人员：</text>
				<text>李三</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">送件人员：</text>
				<text>李四</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">联系人：</text>
				<text>刘先生</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">数量：</text>
				<text>50</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">联系电话：</text>
				<text>17812728942</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">详细地址：</text>
				<text>浙江省杭州市西湖区良渚街道周平路158号优盟商业中心a座</text>
			</view>
			<view class="zy-row item-details">
				<text class="item-title">条形码：</text>
				<view class="zy-row item-right">
					<text v-for="(item1,index1) in barcode" :key="index1">{{item1}}</text>
				</view>
			</view>
			<view class="zy-row" style="margin-top: 96rpx;justify-content: space-around;">
				<view  class="btn">重打条形码</view>
				<view  class="btn-activate">确认接受</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusList: ['待接收', '待清洗', '已取件', '已清洗'],
				barcode: ['12345678', '12345679', '23121aaass','2255qqq333','2255qqq333','2255qqq333','2255qqq333','2255qqq333','2255qqq333']
			};
		},
		methods:{
			navTo(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		padding-bottom: 90rpx;
	}
	
	.item-img{
		margin: 0rpx auto;
		padding:14rpx 28rpx ;
		background-color: #fff;
		.img-list{
			position: relative;
			width: 128rpx;
			height: 128rpx;
			.img {
				width: 100%;
				height: 100%;
			}
			.img-details{
				position: absolute;
				z-index: 5;
				bottom: 0;
				right: 0;
				width: 64rpx;
				height: 38rpx;
				background: #000000;
				border-radius: 20rpx 0px 20rpx 20rpx;
				opacity: 0.38;
			}
			text{
				position: absolute;
				z-index: 100;
				bottom: 0;
				right: 16rpx;
				font-size: 20rpx;
				color: #fff;
				line-height: 38rpx;
			}
		}
			
		.item-up {
			justify-content: space-between;
			flex: 1;
			.see-more{
				padding: 8rpx 16rpx;
				font-size: 22rpx;
				color: $globalColor;
				border: 2rpx solid $globalColor;
				border-radius: 8rpx;
				margin-top: 40rpx;
			}
			.item-right {
				padding-top: 12rpx;
				padding-left: 20rpx;
			
				.item-title {
					width: 376rpx;
					font-size: 28rpx;
					font-weight: 600;
					color: #000000;
				}
			
				.item-order {
					padding: 6rpx 14rpx;
					background: #FAFAFA;
					border-radius: 6rpx;
					margin-top: 16rpx;
					font-size: 24rpx;
					color: $globalColor;
				}
			}
		}
	}
	.list-item{
		background-color: #fff;
		padding: 20rpx 28rpx;
		.item-details{
			text{
				font-size: 28rpx;
			}
			.item-title{
				text-align: right;
				min-width: 140rpx;
				color: #333333;
			}
			&:nth-child(n+2){
				margin-top: 20rpx;
			}
			
			.item-right {
				flex-wrap: wrap;
				width: 620rpx;
				text {
					height: 42rpx;
					line-height: 42rpx;
					&:nth-child(n+2){
						margin-left: 20rpx;
					}
					&:nth-child(3n+1){
						margin-left: 0rpx;
					}
				}
			}
		}
		
	}
	
	
</style>
